import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/Home/myIndex.vue'
import UserView from '@/views/User/myIndex.vue'
import Message from '@/views/Message/myIndex.vue'
import NoteView from '@/views/Note/myIndex.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/', component: Message,
    },
    {
      path: '/note', component: NoteView,
      children: [
        { path: '', component: HomeView },
        { path: 'user', component: UserView }
      ]
    }
  ]
})

export default router
